import Vue from 'vue'
import App from './App.vue'
import router from "./router";
import store from "./store";
import FastClick from "fastclick"
import vuelazyLoad from "vue-lazyload"
//import vant from "vant"
//引入 vant ui
import './pluginunit/vant.js'
import {
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Swipe, SwipeItem,
  Card,SubmitBar
} from 'vant';
//移动端适配处理
 import './common/rem.js'
Vue.config.productionTip = false;
Vue.prototype.$bus = new Vue();
Vue
    .use(GoodsAction)
    .use(GoodsActionIcon)
    .use(GoodsActionButton)
    .use(Swipe).use(SwipeItem)
    .use(Card).use(SubmitBar)
    .use(vuelazyLoad);
//解决移动端300ms延迟
FastClick.attach(document.body);
new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
